package cn.skyquant.quant4j.service.boot.web.controller;

import cn.skyquant.quant4j.api.account.AccountDTO;
import cn.skyquant.quant4j.api.dto.ResultDTO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.WebRequest;

@RestController
@RequestMapping("")
public class WelcomeController {

    final ResultDTO welcome = ResultDTO.success("welcome to quant4j-service11");
    @RequestMapping(value = "",method = RequestMethod.GET)
    @ResponseBody
    public ResultDTO<AccountDTO> welcome(WebRequest webRequest){
        return welcome;
    }
}
